<?php

//require_once( "application.php" );

session_cache_expire(300);
session_id( $_COOKIE["PHPSESSID"] );
session_start();

//$_SESSION['nome']="Bruno";

//$app	=	new Application();


var_dump( $_SESSION );


exit();

?>
<form action="<?php echo $_SERVER['PHP_SELF']?>" method="POST">
<?php 

	if(	!$app->getAuthentication() ){
		$_COOKIE["USER"]="brunosdosdf";
?>
<input type="hidden" name="action" value="login"/>usuario<input type="text" name="username" value="bruno">, senha<input type="password" name="password" value=""> <input type="submit" value="Entrar...">		
<?php				
	}else{
?>
<input type="hidden" name="action" value="logout"/> <input type="submit" value="Sair...">		
<?php		
	}
?>
</form>




<br><br>

<?php 

	if(	$app->getAuthentication() ){

	//	$app->getGridApplicationFeatures( $_SESSION['user_id']);
	}

?>

